import Vue from 'vue'
import App from './App'
import playerBar from './components/BottomBar/index.vue'
import uView from "uview-ui";
import store from './store/index.js'


Vue.prototype.$store = store
Vue.config.productionTip = false
Vue.component('playBar',playerBar)

Vue.use(uView);
// 不包含年份的时间过滤
Vue.filter('dateFormatWithoutYear',(value)=>{
	let date = new Date(value*1000)
	const month = (date.getMonth()+1).toString().padStart(2,'0')
	const day = date.getDate().toString().padStart(2,'0')
	const hours = date.getHours().toString().padStart(2,'0')
	const minutes = date.getMinutes().toString().padStart(2,'0')
	const seconds = date.getSeconds().toString().padStart(2,'0')
	return month + '-' + day +' ' + hours + ':' + minutes + ':' + seconds
})

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
